<?php
include "inc/db.php";
$temp = date("Y-m-d");
$sql="select * from tb_site where tgl_habis_kontrak<'$temp'";
$hasil=mysql_query($sql);
$count=mysql_num_rows($hasil);
?>

Total Site : <?php echo $count; ?>
<br />

<?php
while($kolom=mysql_fetch_array($hasil)){
?>
    <div style="width:200px;border-bottom: 1px solid #CCCCCC;padding:4px 0 4px 15px;">
    <a href="">Site Name : <?php echo $kolom[1]; ?></a>
    <br />
    </div>
<?php
}
?>
<br />
